#pragma once

#include "HZRecog\HZRecog.h"
#include "HZRecog\JHWRDIC.h"

typedef HZRECOGAPI HZ_BOOL  (*_pHZInitCharacterRecognition)(HZ_VOID*);
typedef HZRECOGAPI HZ_BOOL  (*_pHZExitCharacterRecognition)(HZ_VOID);
typedef HZRECOGAPI HZ_INT32 (*_pHZCharacterRecognize)(HZ_INT16* , HZ_WORD* );


class CJhHandWriting
{
public:
	CJhHandWriting(void);
	~CJhHandWriting(void);

	

protected:

	BYTE *Address;
	bool  m_bInit;
	bool  m_bRecogEnable;

	//HINSTANCE hinstLib; 
	//_pHZInitCharacterRecognition  pInitFunc;
	//_pHZExitCharacterRecognition  pExitFunc;
	//_pHZCharacterRecognize         pRecogFunc;


	bool InitHzRecog();
	void ExitHZRecog();
	bool InitHzFunc(void);
	bool OpenRecog(void);
public:
	
	bool Recognize(short* pStroke, unsigned short* pResult);
};
